package com.itheima.day02.ZuoYe.ZuoYe_1;

import com.itheima.day02.ZuoYe.ZuoYe3_7.Person;

public class Recruiter extends People{
    private double commission;

    public Recruiter(String name, int id, double salary, double commission) {
        super(name, id, salary);
        this.commission = commission;
    }

    public double getCommission() {
        return commission;
    }

    public void setCommission(double commission) {
        this.commission = commission;
    }

    @Override
    public void work() {
        System.out.println("工号为"+getId()+"的"+getName()+"的招聘经理，拿着"+getSalary()+"的工资和"+getCommission()+"的提成，正在boss上找员工。");
    }

    public Recruiter() {
    }

    public Recruiter(String name, int id, double salary) {
        super(name, id, salary);
    }
}
